package com.zufe.khw;

import java.util.Date;
import java.util.Random;

public class demo1 {
    public static void main(String[] args) {
        Random r = new Random();
        Date date1 = new Date(Math.abs(r.nextInt()));
        Date date2 = new Date(Math.abs(r.nextInt()));
        long time1 = date1.getTime();
        long time2 = date2.getTime();
        System.out.println(time1 < time2 ? date1 : date2);
    }

    private static void extracted() {
        Date d1 = new Date(0L);
        long time = d1.getTime();
        time = time + 1000L * 60 * 60 * 24 * 365;
        d1.setTime(time);
        System.out.println(d1);
    }
}
